package com.ruoyi.qiushi.domain.equipment;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备出库对象 qiushi_device_out
 *
 * @author ruoyi
 * @date 2023-12-22
 */
public class QiushiDeviceOut extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 出库单号
     */
    @Excel(name = "出库单号")
    private String outNo;

    /**
     * 出库类型 1销售出库
     */
    @Excel(name = "出库类型 1销售出库")
    private String type;

    /**
     * 出库数量
     */
    @Excel(name = "出库数量")
    private Long inCount;

    /**
     * 类型  qiushi_device_type.id
     */
    @Excel(name = "类型  qiushi_device_type.id")
    private Long deviceType;

    /**
     * 业绩归属 sys_user.user_id
     */
    @Excel(name = "业绩归属 sys_user.user_id")
    private Long sysUserId;

    /**
     * 业绩归属 sys_user.nick_name
     */
    @Excel(name = "业绩归属 sys_user.nick_name")
    private String sysUserName;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    private String supplier;

    /**
     * 进货价
     */
    @Excel(name = "进货价")
    private BigDecimal inPrice;

    /**
     * 生产日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /**
     * 有效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validityDate;

    /**
     * 操作人
     */
    @Excel(name = "操作人")
    private String operatingUserName;

    /**
     * 操作人id
     */
    @Excel(name = "操作人id")
    private Long operatingUserId;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOutNo(String outNo) {
        this.outNo = outNo;
    }

    public String getOutNo() {
        return outNo;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setInCount(Long inCount) {
        this.inCount = inCount;
    }

    public Long getInCount() {
        return inCount;
    }

    public void setDeviceType(Long deviceType) {
        this.deviceType = deviceType;
    }

    public Long getDeviceType() {
        return deviceType;
    }

    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }

    public Long getSysUserId() {
        return sysUserId;
    }

    public void setSysUserName(String sysUserName) {
        this.sysUserName = sysUserName;
    }

    public String getSysUserName() {
        return sysUserName;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setInPrice(BigDecimal inPrice) {
        this.inPrice = inPrice;
    }

    public BigDecimal getInPrice() {
        return inPrice;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setValidityDate(Date validityDate) {
        this.validityDate = validityDate;
    }

    public Date getValidityDate() {
        return validityDate;
    }

    public void setOperatingUserName(String operatingUserName) {
        this.operatingUserName = operatingUserName;
    }

    public String getOperatingUserName() {
        return operatingUserName;
    }

    public void setOperatingUserId(Long operatingUserId) {
        this.operatingUserId = operatingUserId;
    }

    public Long getOperatingUserId() {
        return operatingUserId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("outNo", getOutNo())
                .append("type", getType())
                .append("inCount", getInCount())
                .append("deviceType", getDeviceType())
                .append("sysUserId", getSysUserId())
                .append("sysUserName", getSysUserName())
                .append("supplier", getSupplier())
                .append("inPrice", getInPrice())
                .append("productionDate", getProductionDate())
                .append("validityDate", getValidityDate())
                .append("operatingUserName", getOperatingUserName())
                .append("operatingUserId", getOperatingUserId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
